import Request from '@/utils/request.js'
let request = new Request().http

// 获取验证码
export function getCode(data) {
	return request({
		url: '/user/landlord/sendMsg',
		method: 'post',
		data
	})
}

// 获取语音验证码
export function getSendCallCode(data) {
	return request({
		url: '/user/landlord/sendCall',
		method: 'post',
		data
	})
}


// 登录
export function Login(data) {
	return request({
		url: '/user/miniLogin',
		method: 'post',
		data
	})
}

// 微信登录
export function loginByWechat(data) {
	return request({
		url: '/user/loginByWechat',
		method: 'post',
		data
	})
}

// 获取openid
export function getOpenId(data) {
	return request({
		url: '/user/getOpenId',
		method: 'post',
		data
	})
}

export function queryUserByCode(data){
	return request({
		url:'/user/miniLogin',
		method:'post',
		data
	})
}





